package cn.edu.ncut.cs.springboot.springsecuritydemo.service;

import cn.edu.ncut.cs.springboot.springsecuritydemo.entity.User;
import cn.edu.ncut.cs.springboot.springsecuritydemo.vo.UserVO;
import org.springframework.lang.NonNull;

import java.util.List;
import java.util.Optional;

public interface UserService {
    List<UserVO> findAll();
    Optional<User> getByUsername(String username);
    boolean create(UserVO userVO);
    User getById(Long id);

    // 新增方法
    User updateUser(Long id, UserVO userVO);
    void deleteUser(Long id);

}
